package sun.com;

import java.util.Date;
import java.util.function.Consumer;
import java.util.function.Function;

public class Demo {
    public Demo(User<String> user){

    }
    public static void main(String[] args) {
//        User<String> user = ()->"wwww";
//        System.out.println(user.show());
//        test(()->"www");
        Function<Double,Long> fun =(d)->Math.round(d);
        Function<Double,Long> f=Math::round;
    }
    public  void test(User<String> user) {
        user.show();
    }
}
